package jp.tkym.labs.store;

import java.net.URL;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

class SqliteConnectionFactory{
	private static final String JDBC_CLASS = "org.sqlite.JDBC"; 
	SqliteConnectionFactory() throws ClassNotFoundException{
		Class.forName(JDBC_CLASS);
	}
	
	Connection create(URL url) throws SQLException{
		return DriverManager.getConnection("jdbc:sqlite:"+url.getPath());
	}
}